package com.sinochem.yunlian.ship.zuul.config;

import com.sinochem.yunlian.ship.common.constant.CommonConstants;
import com.sinochem.yunlian.ship.gateway.ratelimit.config.IUserPrincipal;

import javax.servlet.http.HttpServletRequest;

public class UserPrincipal implements IUserPrincipal {

    @Override
    public String getName(HttpServletRequest request) {
    	return request.getHeader(CommonConstants.SSO_TOKEN);
    }

}
